/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * TrainingBook
 * Copyright (C) Arnaud Duval 2010 <arnaud.duval@gmail.com>
 * 
 * TrainingBook is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * TrainingBook is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _PREFERENCES_DIALOG_HPP_
#define _PREFERENCES_DIALOG_HPP_

#include <gtkmm.h>
#include "activity-types.hpp"


///@class PreferencesDialog
///@brief A GUI dialog box for software preferences
class PreferencesDialog: public Gtk::Dialog
{
	public:
		///@brief Constructor
		PreferencesDialog(Gtk::Window *parent, ActivityTypes, std::string);
		///@brief Destructor
		virtual ~PreferencesDialog();
		///@brief Return activity types
		ActivityTypes GetActivityTypes();
        ///@brief Return OSM tiles repository
        std::string GetOsmTilesRepository();
	protected:
		///@brief Fill the activity types text buffer with the list of activity types
		void FillActivityTypesTextBuffer();
	private:
		///@brief Activity types
		ActivityTypes activityTypes;
        ///@brief URL of tiles repository
        std::string osmTilesURL;
		///@brief Entry for activity types
		Gtk::VBox activityTypesVBox;
		Gtk::Label activityTypesLabel;
		Gtk::TextView activityTypesTextView;
		Glib::RefPtr<Gtk::TextBuffer> textBuffer;

        ///@brief Entry for the URL of OSM tiles
        Gtk::VBox osmTilesURLVBox;
        Gtk::Label osmTilesURLLabel;
        Gtk::Entry osmTilesURLEntry;
        
		
};

#endif // _PREFERENCES_DIALOG_HPP_
